package com.xusheng.cli.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 支付方式
 *
 * @author jzw
 * @since 2022-01-11 10:13
 */
public enum PayApiType {
	/**
	 * 待付款
	 */
	DY_PAYMENT(0, "DY支付", "dy_pay"),
	HX_PAYMENT(1, "华夏支付", "hx_pay"),

	FK_PAYMENT(2, "发卡支付", "fk_pay"),
	NCT_PAYMENT(3, "新财通", "nct_pay");

	PayApiType(int code, String description, String key) {
		this.code = code;
		this.description = description;
		this.key = key;
	}

	@EnumValue
	private final int code;

	private final String description;

	@JsonValue
	private final String key;

	public int getCode() {
		return code;
	}

	public String getDescription() {
		return description;
	}

	public String getKey() {
		return key;
	}
}
